package cn.hzu.bean;

public class User {
    private int id;
    private String psw;
    private String email;
    private int state;
    private String name;
    private String img_src;
    private String sex;
    private String phone;
    private String nickname;

    public User(){ }
    public User(int id, String psw, String email, int state, String name, String img_src, String sex, String phone, String nickname) {
        this.id = id;
        this.psw = psw;
        this.email = email;
        this.state = state;
        this.name = name;
        this.img_src = img_src;
        this.sex = sex;
        this.phone = phone;
        this.nickname = nickname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg_src() {
        return img_src;
    }

    public void setImg_src(String img_src) {
        this.img_src = img_src;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", psw='" + psw + '\'' +
                ", email='" + email + '\'' +
                ", state=" + state +
                ", name='" + name + '\'' +
                ", img_src='" + img_src + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
